﻿namespace AjLogo.Primitives
{
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class Make : BinaryPrimitive
    {
        public override object Apply(BindingEnvironment environment, object value1, object value2)
        {
            if (environment == null) 
                throw new System.ArgumentNullException("environment");

            if (value1 == null)
                throw new System.ArgumentNullException("value1");

            environment.SetValue(value1.ToString(), value2);

            return value2;
        }
    }
}
